<template>
  <div class="bottom-copyright">
    <p v-if="copyright.copyright">{{copyright.copyright}}</p>
    <p v-else>
      Powered by <a href="https://www.w7.cc/" target="_blank"><b>微擎</b></a> v{{copyright.version}}  2014-2020 <a href="https://www.w7.cc/">www.we7.cc</a>
    </p>
    <p v-if="copyright.icp">
      备案号：<a href="https://beian.miit.gov.cn/" target="_blank">{{copyright.icp}}</a>
    </p>
  </div>
</template>

<script>
export default {
  name: 'bottomCopyright',
  data () {
    return {
      // 版权信息
      copyright: []
    }
  },
  mounted () {
    this.$get('copyright')
      .then((res) => {
        let { code, data } = res.data
        if (code === 0) {
          this.copyright = data
        }
      })
  }
}
</script>

<style lang="less">
  .bottom-copyright{
    height: 80px;
    background: #fff;
    border-top: 1px solid #F0F0F0;
    padding-top:20px;
    box-sizing: border-box;
    font-size: 14px;
    p{
      text-align: center;
    }
  }
</style>
